<!--
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2021-06-02 16:13:05
 * @LastEditors: Sam
 * @LastEditTime: 2021-12-01 17:25:35
-->
{include file="public/header"}
{if condition="!$frame"}
    {if condition="isset($where) && !empty($where)"} 
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-card">
                <div class="layui-card-header">搜索</div>
                <div class="layui-card-body">
                    {$where|raw}
                </div>
            </div>
            
        </div>
    </div>
    {/if}
    
<div class="layui-fluid">
  
    <div class="layui-row layui-col-space15">
        {/if}
        <div class="layui-card">

            {if condition="!$frame"}
                <div class="layui-card-header">{$page_title}</div>
            {/if}
            <div class="layui-card-body">
                
                <table id="table"></table>
                <script type="text/html" id="toolbar_row">
                    {if isset($toolbar_row) && $toolbar_row !=''} 
                        {$toolbar_row|raw}
                    {/if}
                </script>
            </div>
        </div>
        {if condition="!$frame"}
    </div>
</div>
{/if}
{include file="public/footer" /}
{include file="public/table" /}
<script>
    layui.use(['index', 'form', 'table'], function(){
        var $       = layui.$;
        var table   = layui.table;

    <?php $extend_tpl =  (isset($extend_tpl) && $extend_tpl !='') ?  file_get_contents($tpl) : ''; echo str_replace(['<script>', '</script>'], ['', ''], $extend_tpl)?>
});
</script>